from selenium.webdriver.common.by import By
class RewardLocator():


    # 登录标签
    login_click = (By.XPATH, '//a[text()="我的工作台"]')
    username_loc = (By.XPATH, '//input[@placeholder="请输入用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="请输入密码"]')
    # 登录按钮
    loginsbt = (By.XPATH, '//button[@onclick="loginVerify(1)"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[1]/button/i')

    # 教职工信息管理应用
    teacher_manage = (By.XPATH, '//div[text()="教职工信息管理系统"]')

    # 奖励菜单
    reward_menu = (By.XPATH, '//div[@class="site-sidebar__inner"]//span[text()=" 奖励"]')

    # 奖励标签
    reward_menu_label = (By.XPATH, '//span[@role="link"]')

    # 添加奖励按钮
    add_reward = (By.XPATH, '//div[@class="teachers_manage_retire"]//span[contains(text(), "添加")]')

    # 奖励类别标签定位取值
    reward_type_text = (By.XPATH, '//label[@for="awardType"]')

    # 姓名输入框
    name = (By.XPATH, '//div[@class="site-content__wrapper"]//div/form/div[1]/div/div/div/input')

    # 名称列表第一个定位
    list1 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 名称输入框提示信息
    name_tips = (By.XPATH, '//div[contains(@x-placement,"-start")]/p')

    # 名称输入框为空提示
    name_none = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 奖励类别下拉框
    reward_type = (By.XPATH, '//input[@placeholder="请选择奖励类别"]')

    # 奖励类别为空提示
    reward_type_none = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 科研工作
    scientific_research = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 奖励名称
    reward_name = (By.XPATH, '//input[@placeholder="请输入奖励名称"]')

    # 奖励名称字数标签
    reward_name_num = (By.XPATH, '//form[@class="el-form retire--foems"]/div[2]/div[1]/div[2]/div/div/span/span/span/span')

    # 奖励名称为空提示
    reward_name_none = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 列表第一条奖励名称标签
    list1_reward_name = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr/td[6]/div')

    # 确定按钮
    sure = (By.XPATH, '//button[@class="el-button el-button--primary el-button--medium"]/span')

    # 取消按钮
    unsure = (By.XPATH, '//button[@class="el-button el-button--default el-button--medium"]/span')

    # 系统提示信息
    system_tips = (By.XPATH, '//div[@role="alert"]/p')

    # 奖励等级
    reward_level = (By.XPATH, '//input[@placeholder="请选择奖励等级"]')

    # 一等
    first_class = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 列表第一条奖励等级标签
    list1_reward_level = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="亚瑟"]/../../td[8]/div')

    # 列表第一条奖励年月标签
    list1_reward_time = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="亚瑟"]/../../td[5]/div')

    # 奖励年月选择框
    reward_time = (By.XPATH, '//input[@placeholder="请选择奖励年月"]')

    # 奖励级别
    reward_area_level = (By.XPATH, '//input[@placeholder="请选择奖励级别"]')

    # 学校级
    school_level = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[5]')

    # 列表第一条奖励级别标签
    list1_reward_area_level = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="亚瑟"]/../../td[7]/div')

    # 授奖单位输入框
    unit_prizes = (By.XPATH, '//input[@placeholder="请输入授奖单位"]')

    # 授奖单位输入框字数标签
    unit_prizes_num = (By.XPATH, '//form[@class="el-form retire--foems"]/div[2]/div[2]/div[3]/div/div/span/span/span/span')

    # 列表第一条授奖单位标签
    list1_unit_prizes = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="亚瑟"]/../../td[8]/div')

    # 备注
    note = (By.XPATH, '//textarea[@class="el-textarea__inner"]')

    # 备注字数标签
    note_tips = (By.XPATH, '//form[@class="el-form retire--foems"]/div[3]/div/span')

    # 上传附件input标签
    accessory = (By.XPATH, '//div[@class="upload-demo"]/div[1]/input')

    # 上传列表第一个
    file1 = (By.XPATH, '//div[@class="upload-demo"]/ul/li/a')

    # 列表第一条删除按钮
    delete = (By.XPATH, '//div[@class="el-table__fixed-right"]//div[text()="亚瑟"]/../..//span[contains(text(), "删除")]')

    # 系统提示确认删除
    sure_del = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')

    # 列表第一条编辑按钮
    edit = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]/table/tbody/tr/td[11]/div/button[2]/span')

    # 编辑页面标题标签
    span = (By.XPATH, '//span[@separator="/"]/span/span[1]')




